//
//  ConfirmOrderModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/18.
//

import UIKit
import ObjectMapper
class ConfirmOrderModel: Mappable {
    var code: String?
    var msg: String?
    var data: ConfirmOrderDataModel?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}

class ConfirmOrderDataModel: Mappable {
    var orderNo: String?
    func mapping(map: Map) {
        orderNo <- map["orderNo"]
    }
    required init?(map: Map) {
        
    }
}

class OrderContentListModel: Mappable {
    var orderNo: String? //订单号
    var carId: Int?//车辆ID
    var carNo: String? //车辆编号
    var backgroundImage: String?//车辆背景
    var storeName: String?//门店
    var brandName: String?//品牌
    var seriesName: String?//车系
    var price: Double?//总价
    var depositAmount: Double?//定金
    var memberId: Int?//会员ID
    var memberName: String?//购买人姓名
    var memberPhone: String?//购买人手机
    var memberAccount: String?//购买人账号
    var orderTime:  String?//订单时间
    var payType: String?//支付方式
    var status: Int?//订单状态1:待支付 ；2：已支付 3：已完成 4：退订 5:已取消
    var subscribeType: NSInteger?
    var carName: String?//车名
    var paymentName: String?//订购人
    var paymentPhone: String?//电话号码
    
    var type: Int? //订单类型，0车辆，1服务，2商品 3:海外车
    var appointmentTime: String? //预约维修时间年月日
    var appointmentTimeStr:String? //预约时段
    var firstName: String? //名
    var lastName: String? //姓
    var phone: String? //手机
    var email: String? //email
    var carBrand: String? //车辆品牌
    var carStyle: String? //车辆车系
    var carDate: String? //车辆年份
    var carNum: String? //车牌号
    var expirationDate: Int?//有效期
    var dateOfExpiry: String? //有效期至
    var appointmentStr: String? //预约维修时间
    var urlPicture: String?
    var serverName: String?
    
    var itemNum: String?//商品数量
    var id: Int?
    
    
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        subscribeType <- map["subscribeType"]
        orderNo <- map["orderNo"]
        carId <- map["carId"]
        carNo <- map["carNo"]
        backgroundImage <- map["backgroundImage"]
        storeName <- map["storeName"]
        brandName <- map["brandName"]
        seriesName <- map["seriesName"]
        price <- map["price"]
        depositAmount <- map["depositAmount"]
        memberId <- map["memberId"]
        memberName <- map["memberName"]
        memberPhone <- map["memberPhone"]
        memberAccount <- map["memberAccount"]
        orderTime <- map["orderTime"]
        payType <- map["payType"]
        status <- map["status"]
        carName <- map["carName"]
        paymentName <- map["paymentName"]
        paymentPhone <- map["paymentPhone"]
     
        type <- map["type"]
        appointmentTime <- map["appointmentTime"]
        appointmentTimeStr <- map["appointmentTimeStr"]
        firstName <- map["firstName"]
        lastName <- map["lastName"]
        phone <- map["phone"]
        email <- map["email"]
        carBrand <- map["carBrand"]
        carStyle <- map["carStyle"]
        carDate <- map["carDate"]
        carNum <- map["carNum"]
        expirationDate <- map["expirationDate"]
        dateOfExpiry <- map["dateOfExpiry"]
        appointmentStr <- map["appointmentStr"]
        urlPicture <- map["urlPicture"]
        serverName <- map["serverName"]
        itemNum <- map["itemNum"]
        id <- map["id"]
        
    }
    
    init() {
        
    }
}

